package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 漆家乐
 * 活动实体类
 */
public class Activity implements Serializable {
    private static final long serialVersionUID=654252435L;
    /**
     * 活动id
     */
    private Integer aid;
    /**
     * 活动名字
     */
    private String aname;
    /**
     * 活动内容
     */
    private String acontent;
    /**
     * 活动开始时间
     */
    private LocalDateTime astartTime;
    /**
     * 活动结束时间
     */
    private LocalDateTime aendTime;
    /**
     * 活动类型id
     */
    private Integer actid;

    public Activity() {
    }

    public Activity(Integer aid, String aname, String acontent, LocalDateTime astartTime, LocalDateTime aendTime, Integer actid) {
        this.aid = aid;
        this.aname = aname;
        this.acontent = acontent;
        this.astartTime = astartTime;
        this.aendTime = aendTime;
        this.actid = actid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getAcontent() {
        return acontent;
    }

    public void setAcontent(String acontent) {
        this.acontent = acontent;
    }

    public LocalDateTime getAstartTime() {
        return astartTime;
    }

    public void setAstartTime(LocalDateTime astartTime) {
        this.astartTime = astartTime;
    }

    public LocalDateTime getAendTime() {
        return aendTime;
    }

    public void setAendTime(LocalDateTime aendTime) {
        this.aendTime = aendTime;
    }

    public Integer getActid() {
        return actid;
    }

    public void setActid(Integer actid) {
        this.actid = actid;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "aid='" + aid + '\'' +
                ", aname='" + aname + '\'' +
                ", acontent='" + acontent + '\'' +
                ", astartTime=" + astartTime +
                ", aendTime=" + aendTime +
                ", actid='" + actid + '\'' +
                '}';
    }
}
